Method and apparatus for adjusting position of virtual button, device, storage medium, and program product

ABSTRACT

A method for adjusting the position of a virtual button includes: presenting a button adjustment interface of a virtual scene including a target virtual button; controlling, in response to a movement operation for the target virtual button, the target virtual button to move in the button adjustment interface, to adjust a presentation position of the target virtual button in the virtual scene, wherein at least two presentation forms of the target virtual button are in the virtual scene; and presenting prompt information in response to the target virtual button being moved to a boundary area in the button adjustment interface, the prompt information being used for prompting that the target virtual button is displayed abnormally in the virtual scene when the target virtual button is in a target presentation form of the at least two presentation forms.

RELATED APPLICATION

This application is a continuation of International Patent ApplicationNo. PCT/CN2021/115808, filed Aug. 31, 2021, which claims the benefit ofpriority of Chinese Patent Application No. 202011190860.8, filed Oct.30, 2020. The contents of International Patent Application No.PCT/CN2021/115808 and Chinese Patent Application No. 202011190860.8 areeach incorporated herein by reference in their entirety.

FIELD OF THE TECHNOLOGY

This application relates to the field of computer technologies, and inparticular, to a method and an apparatus for adjusting the position of avirtual button, a device, a computer-readable storage medium, and acomputer program product.

BACKGROUND OF THE DISCLOSURE

A display technology based on graphics processing hardware expandschannels for perceiving an environment and acquiring information.Especially, a display technology of virtual scenes can implement,according to actual application requirements, diversified interactionsbetween virtual objects controlled by a user or artificial intelligence,and has various typical application scenarios, for example, virtualscenes such as military exercise simulation and gaming, to simulate areal battle process between virtual objects.

A user usually needs to control a virtual object or a virtual item in avirtual scene by using virtual buttons. To make the positions of thevirtual buttons better satisfy operation habits of the user, a method isprovided in the related art to customize a presentation position of abutton in the virtual scene. However, when the virtual buttons have aplurality of presentation forms, if one set of custom button positionsettings is added for every presentation form, upload and downloadtraffic is increased, resulting in a waste of storage space.

SUMMARY

Embodiments of this application provide a method and an apparatus foradjusting the position of a virtual button, a device, acomputer-readable storage medium, and a computer program product, whichcan reduce memory consumption during data processing and save datastorage space.

The technical solutions in the embodiments of this application areimplemented as follows:

An embodiment of this application provides a method for adjusting theposition of a virtual button, including:

presenting a button adjustment interface of a virtual scene including atarget virtual button;

controlling, in response to a movement operation for the target virtualbutton, the target virtual button to move in the button adjustmentinterface, to adjust a presentation position of the target virtualbutton in the virtual scene,

there being at least two presentation forms of the target virtual buttonin the virtual scene; and

presenting prompt information in response to the target virtual buttonbeing moved to a boundary area in the button adjustment interface, theprompt information being used for prompting that the target virtualbutton is displayed abnormally in the virtual scene when the targetvirtual button is in a target presentation form of the at least twopresentation forms.

An embodiment of this application provides an apparatus for adjustingthe position of a virtual button, including:

a presentation module, configured to present a button adjustmentinterface of a virtual scene including a target virtual button;

a movement module, configured to control, in response to a movementoperation for the target virtual button, the target virtual button tomove in the button adjustment interface, to adjust a presentationposition of the target virtual button in the virtual scene,

there being at least two presentation forms of the target virtual buttonin the virtual scene; and

a prompt module, configured to present prompt information in response tothe target virtual button being moved to a boundary area in the buttonadjustment interface, the prompt information being used for promptingthat the target virtual button is displayed abnormally in the virtualscene when the target virtual button is in a target presentation form ofthe at least two presentation forms.

An embodiment of this application provides a computer device, including:

a memory, configured to store executable instructions; and

a processor, configured to implement the method for adjusting theposition of a virtual button according to the embodiments of thisapplication when executing the executable instructions stored in thememory.

An embodiment of this application provides a computer-readable storagemedium, storing executable instructions, and configured to, whenexecuted by a processor, implement the method for adjusting the positionof a virtual button according to the embodiments of this application.

An embodiment of this application provides a computer program product,including a computer program or instruction that, when executed by aprocessor, implements the method for adjusting the position of a virtualbutton provided in the embodiments of this application.

Embodiments of this application have the following beneficial effects:

The embodiments of this application are applied, so that presentationpositions of a target virtual button in at least two presentation formscan be adjusted, and it is prompted that the target virtual button isdisplayed abnormally in a target presentation form in response to thetarget virtual button being moved to a boundary area, for a user tocontinue to adjust the presentation position of the target virtualbutton based on prompt information, so that various presentation formsof the target virtual button can be displayed normally in a virtualscene, thereby avoiding the problem of abnormal display of the targetvirtual button. In addition, a plurality presentation forms of thetarget virtual button share one presentation position, thereby improvingthe efficiency of data processing and saving storage space compared withthe setting of a plurality of sets of button positions.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A and FIG. 1B are schematic diagrams of a presentation interfaceof a virtual button according to an embodiment of this application.

FIG. 2 is a schematic diagram of a presentation interface of a virtualbutton according to an embodiment of this application.

FIG. 3 is a schematic diagram of an implementation scenario of a methodfor adjusting the position of a virtual button according to anembodiment of this application.

FIG. 4 is a schematic structural diagram of a computer device 500according to an embodiment of this application.

FIG. 5 is a schematic flowchart of a method for adjusting the positionof a virtual button according to an embodiment of this application.

FIG. 6 is a schematic diagram of a presentation interface of promptinformation according to an embodiment of this application.

FIG. 7 is a schematic diagram of a presentation interface of promptinformation according to an embodiment of this application.

FIG. 8 is a schematic diagram of a presentation interface of promptinformation according to an embodiment of this application.

FIG. 9 is a schematic diagram of a presentation of a target virtualbutton according to an embodiment of this application.

FIG. 10 is a schematic flowchart of a method for adjusting the positionof a virtual button according to an embodiment of this application.

FIG. 11 is a schematic diagram of an interface for area divisionaccording to an embodiment of this application.

FIG. 12A and FIG. 12B are schematic diagrams of a presentation of atarget virtual button according to an embodiment of this application.

FIG. 13 is a schematic flowchart of a method for adjusting the positionof a virtual button according to an embodiment of this application.

FIG. 14 is a schematic flowchart of a method for adjusting the positionof a virtual button according to an embodiment of this application.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of thisapplication clearer, the following describes this application in furtherdetail with reference to the accompanying drawings. The describedembodiments are not to be considered as a limitation to thisapplication. All other embodiments obtained by a person of ordinaryskill in the art without creative efforts shall fall within theprotection scope of this application.

In the following descriptions, related “some embodiments” describe asubset of all possible embodiments. However, it may be understood thatthe “some embodiments” may be the same subset or different subsets ofall the possible embodiments, and may be combined with each otherwithout conflict.

In the following descriptions, the included term “first/second/third” ismerely intended to distinguish similar objects but does not necessarilyindicate a specific order of an object. It may be understood that“first/second/third” is interchangeable in terms of a specific order orsequence if permitted, so that the embodiments of this applicationdescribed herein can be implemented in a sequence in addition to thesequence shown or described herein.

Unless otherwise defined, meanings of all technical and scientific termsused in this specification are the same as those usually understood by aperson skilled in the art to which this application belongs. Terms usedin this specification are merely intended to describe objectives of theembodiments of this application, but are not intended to limit thisapplication.

Before the embodiments of this application are further described indetail, nouns and terms involved in the embodiments of this applicationare described. The nouns and terms provided in the embodiments of thisapplication are applicable to the following explanations.

1) A client is an application running on a terminal to provide variousservices such as a video playback client, a game client or the like.

2) “In response to” is used for indicating a condition or state on whichan operation to be performed depends. In event that the condition orstate on which the operation depends is met, one or more operations tobe performed may be performed in real time or performed after a setdelay. Unless otherwise specified, the order of performing a pluralityof operations to be performed is not limited.

3) A virtual scene is displayed (or provided) in event that anapplication is running on a terminal. The virtual scene may be asimulated environment of a real world, or may be a semi-simulated andsemi-fictional environment, or may be a completely fictionalenvironment. The virtual scene may be any one of a two-dimensionalvirtual scene, a 2.5-dimensional virtual scene or a three-dimensionalvirtual scene. The dimensions of the virtual scene are not limited inthe embodiments of this application. For example, the virtual scenes mayinclude sky, land, sea, and the like. The land may include environmentalelements such as a desert and a city. A user may control a virtualobject to move in the virtual scene.

In a virtual scene, the same virtual button may have differentpresentation forms and sizes. In the process of implementing theembodiments of this application, the inventor finds that if the same setof custom button position settings are used, the virtual button may havea problem of being displayed incompletely in some presentation forms.

For example, FIG. 1A and FIG. 1B are schematic diagrams of apresentation interface of a virtual button according to an embodiment ofthis application. Referring to FIG. 1A, in a first mode, each gun canonly be loaded with one type of bullets, and the corresponding bulletshave only one grade. Therefore, a “quick reload” virtual button 101 inFIG. 1A is only used for loading a firearm when a trigger operation isreceived. Referring to FIG. 1B, in a second mode, each gun can be loadedwith a plurality of bullets. Therefore, a “quick reload” virtual button102 in FIG. 1B includes a main body button 102-1 and a pull-up menubutton 102-2, and needs to carry the function of “loading” the firearmand carry the function of changing the type of bullets, that is, to loadthe firearm when a click operation on the main body button 102-1 isreceived and to display a pull-up menu 102-3 when a click operation onthe pull-up menu button 102-2 is received, the pull-up menu includingall types of bullets that can be loaded into the gun; and to use abullet type indicated by a selection operation as a bullet type for nextloading of the gun when a selection operation for the bullet type in thepull-up menu is received.

The “quick reload” virtual button has different presentation forms inthe first mode and the second mode, but the presentation forms andoperation modes of other virtual buttons are identical. If one panelwith custom button positions is set for every mode, a plurality of setsof layout data need to be stored, resulting in a waste of storage spaceand increasing upload and download traffic.

Furthermore, FIG. 2 is a schematic diagram of a presentation interfaceof a virtual button according to an embodiment of this application.Referring to FIG. 2, in event that the “quick reload” virtual button inthe second mode is placed at the top of a virtual scene, the pull-upmenu cannot be displayed, causing a problem of abnormal display.

Thereafter, embodiments of this application provide a method and anapparatus for adjusting the position of a virtual button, a device, anda computer-readable storage medium, which can reduce memory consumptionduring data processing and save data storage space, and are separatelydescribed in the following.

FIG. 3 is a schematic diagram of an implementation scenario of a methodfor adjusting the position of a virtual button according to anembodiment of this application. To support an exemplary application, aterminal (a terminal 400-1 and a terminal 400-2 are exemplarily shown)is connected to a server 200 by a network 300. The network 300 may be awide area network, a local area network or a combination of the two.

In an actual implementation, the terminal installs and runs anapplication that supports a virtual scene. The application may be any ofa first-person shooter (FPS) game, a third-person shooter game, amultiplayer online battle arena (MOBA) game, a virtual realityapplication, a three-dimensional map program, a military simulationprogram, or a multiplayer gun battle survival game. A user uses aterminal to operate a virtual object in a virtual scene through avirtual button to perform an action. The action includes, but is notlimited to, at least one of body posture adjustment, crawling, walking,running, cycling, jumping, driving, picking, shooting, attacking, andthrowing. For example, the virtual object is a virtual character such asa simulated character role or a cartoon character role.

In an exemplary scenario, the user triggers a position adjustmentinstruction of the virtual button through a terminal 400-1. The terminal400-1 presents a button adjustment interface of a virtual sceneincluding a target virtual button; controls, in response to a movementoperation for the target virtual button, the target virtual button tomove in the button adjustment interface, to adjust a presentationposition of the target virtual button in the virtual scene, there beingat least two presentation forms of the target virtual button in thevirtual scene; and presents prompt information in response to the targetvirtual button being moved to a boundary area in the button adjustmentinterface, to prompt that the target virtual button is displayedabnormally in the virtual scene when the target virtual button is in atarget presentation form of the at least two presentation forms.

After the position adjustment is completed, the user may trigger astorage instruction through the terminal 400-1. The terminal acquiresadjusted position data of the target virtual button, and transmits theadjusted position data of the target virtual button to the server 200,and the server 200 stores the position data of the target virtualbutton.

In event that the user triggers a loading instruction such as a gamestart instruction of a virtual scene through the terminal 400-1, theserver calculates scene data in the virtual scene and the position dataof the virtual button, and transmits the data to the terminal 400-1. Theterminal 400-1 relies on graphics computing hardware to completeloading, parsing, and rendering of calculation display data, relies ongraphics output hardware to output a virtual scene to form visualperception, and presents the target virtual button at the adjustedposition in the virtual scene, to control the virtual object in thevirtual scene through the target virtual button.

In some embodiments, the server 200 may be an independent physicalserver, or a server cluster or a distributed system composed of aplurality of physical servers, or a cloud server providing basic cloudcomputing services such as a cloud service, a cloud database, cloudcomputing, a cloud function, cloud storage, a network service, cloudcommunication, a middleware service, a domain name service, a securityservice, a content delivery network (CDN), big data, an artificialintelligence platform, and the like. The terminal may be a smart phone,a tablet computer, a laptop computer, a desktop computer, a smartspeaker, a smart watch, and the like, which is not limited thereto. Theterminal and the server may be directly or indirectly connected in awired or wireless communication manner, which is not limited in theembodiments of this application.

FIG. 4 is a schematic structural diagram of a computer device 500according to an embodiment of this application. In an actualapplication, the computer device 500 may be the terminal 400-1 or theserver 200 in FIG. 3. For example, the computer device is the terminal400-1 shown in FIG. 1. The computer device that implements the methodfor displaying information in a virtual scene in an embodiment of thisapplication is described. The computer device 500 shown in FIG. 4includes: at least one processor 510, a memory 550, at least one networkinterface 520, and a user interface 530. Components in the computerdevice 500 are coupled by a bus system 540. It may be understood thatthe bus system 540 is configured to implement connection andcommunication between the components. In addition to a data bus, the bussystem 540 further includes a power bus, a control bus, and a statussignal bus. However, for ease of clear description, all types of busesare marked as the bus system 540 in FIG. 4.

The processor 510 may be an integrated circuit chip having a signalprocessing capability, for example, a general purpose processor, adigital signal processor (DSP), or another programmable logic device(PLD), discrete gate, transistor logical device, or discrete hardwarecomponent. The general purpose processor may be a microprocessor, anyconventional processor, or the like.

The user interface 530 includes one or more output apparatuses 531 thatcan display media content, including one or more loudspeakers and/or oneor more visual display screens. The user interface 530 further includesone or more input apparatuses 532, including user interface componentsthat facilitate inputting of a user, such as a keyboard, a mouse, amicrophone, a touch display screen, a camera, and other input buttonsand controls.

The memory 550 may be a removable memory, a non-removable memory, or acombination thereof. Exemplary hardware devices include a solid-statememory, a hard disk drive, an optical disk drive, and the like. Thememory 550 optionally includes one or more storage devices that arephysically remote from the processor 510.

The memory 550 includes a volatile memory or a non-volatile memory, ormay include both a volatile memory and a non-volatile memory. Thenon-volatile memory may be a read-only memory (ROM). The volatile memorymay be a random access memory (RAM). The memory 550 described in thisembodiment of this application is to include any other suitable type ofmemories.

In some embodiments, the memory 550 may store data to support variousoperations. Examples of the data include a program, a data structure, ora subset or a superset thereof, which are described below by usingexamples. Additionally, as used herein, the term module means hardwareor a combination of hardware and software configured to perform,execute, or carry out one or more functions. For example, a module canbe a circuit, such as an analog circuit, a digital circuit, anintegrated circuit (IC), a processor executing instructions stored in amemory to execute the one or more functions, a memory or at least a partof the memory storing instructions executable by a processor to carryout the one or more functions, or any of various combinations thereof.

An operating system 551 includes a system program configured to processvarious basic system services and perform a hardware-related task, suchas a framework layer, a core library layer, or a driver layer, and isconfigured to implement various basic services and process ahardware-based task.

A network communication module 552 is configured to reach anothercomputing device through one or more (wired or wireless) networkinterfaces 520. Exemplary network interfaces 520 include: Bluetooth,Wireless Fidelity (Wi-Fi), a universal serial bus (USB), and the like.

The presentation module 553 is configured to enable the presentation ofinformation (such as a user interface for operating a peripheral deviceand displaying content and information) via one or more output devices531 (such as a display screen, a speaker, etc.) associated with the userinterface 530.

An input processing module 554 is configured to detect one or more userinputs or interactions from one of the one or more input apparatuses 532and translate the detected input or interaction.

In some embodiments, an information display device in the virtual sceneaccording to the embodiments of this application may be implemented in asoftware manner. FIG. 4 shows an apparatus 555 for adjusting theposition of a virtual button stored in the memory 550, which may be asoftware in the form of programs and plug-ins, and includes thefollowing software modules: a presentation module 5551, a movementmodule 5552, and a prompt module 5553, which are logical and thereforecan be combined or further split arbitrarily according to implementfunctions. The following describes functions of the modules.

In other embodiments, the apparatus for adjusting the position of avirtual button according to the embodiments of this application may beimplemented in a hardware manner. In an example, the apparatus foradjusting the position of a virtual button according to embodiments ofthis application may be a processor in the form of a hardware decodingprocessor, which is programmed to perform the method for adjusting theposition of a virtual button according to the embodiments of thisapplication. For example, the processor in the form of a hardwaredecoding processor may adopt one or more application specific integratedcircuits (ASICs), DSPs, PLDs, complex programmable logic devices(CPLDs), field-programmable gate arrays (FPGAs), or other electronicelements.

The method for adjusting the position of a virtual button according tothe embodiments of this application is described in conjunction with anexemplary application and implementation of the terminal provided in theembodiments of this application.

FIG. 5 is a schematic flowchart of a method for adjusting the positionof a virtual button according to an embodiment of this application,which is described with reference to steps shown in FIG. 5.

Step 501: A terminal presents a button adjustment interface of a virtualscene including a target virtual button.

In an actual application, an application supporting a virtual scene isinstalled on the terminal. The application may be any of an FPS game, athird-person shooter game, a MOBA game, a virtual reality application, athree-dimensional map program, a military simulation program, or amultiplayer gun battle survival game. The user may control an action ofa virtual object in a virtual scene through a virtual button presentedin the virtual scene. The action includes, but is not limited to, atleast one of body posture adjustment, crawling, walking, running,cycling, jumping, driving, picking, shooting, attacking, and throwing.For example, the virtual object is a virtual character such as asimulated character role or a cartoon character role.

In an actual implementation, a user may trigger a button adjustmentinstruction before, during or after the presentation of a virtual scene.After receiving the button adjustment instruction, the terminal presentsa button adjustment interface of a virtual scene including a targetvirtual button, and the user may adjust the position of the targetvirtual button based on the button adjustment interface.

For example, if a virtual scene is a game scene, the user may triggerthe button adjustment instruction before the game is started, during thegame, or after the game is ended. After receiving the button adjustmentinstruction, the terminal presents a button adjustment interface of avirtual scene including a target virtual button.

The button adjustment interface may include one or more virtual buttons.The virtual buttons are configured to control the actions of a virtualobject in a virtual scene. Through the virtual adjustment interface, auser may adjust the position of one or more virtual buttons included inthe virtual adjustment interface. The one or more virtual buttonsinclude at least a target virtual button.

Step 502: Control, in response to a movement operation for the targetvirtual button, the target virtual button to move in the buttonadjustment interface, to adjust a presentation position of the targetvirtual button in the virtual scene.

There are at least two presentation forms of the target virtual buttonin the virtual scene.

In some embodiments, at least two modes are set in the virtual scene,and there are virtual buttons with the same or similar functions indifferent modes. The buttons with the same or similar functions indifferent modes are used as one virtual button, and the virtual buttonswith the same or similar functions may have different presentation formsin different modes. The presentation form of the target virtual buttonin the virtual scene may correspond to a mode. For example, a first modeand a second mode are set. In event that a user selects the first mode,the target virtual button is presented in the virtual scene in a firstpresentation form. In event that the user selects the second mode, thetarget virtual button is presented in the virtual scene in a secondpresentation form.

In some embodiments, different presentation forms may be set for avirtual button in the same mode, the timing of switching a presentationform being diversified. For example, after a user-triggered instructionfor switching a presentation form is received, the presentation form ofthe target virtual button is switched. In event that a duration of thevirtual scene exceeds a continuous display duration threshold, that is,in event that a duration of an exercise simulation in militarysimulation software or a duration after a battle in a game is startedexceeds the display duration threshold, the presentation form of thetarget virtual button is switched. In event that a first virtual objectcontrolled by the user kills a particular quantity of enemies or obtainsa particular quantity of points, the presentation form of the targetvirtual button is switched.

In some embodiments, the target virtual button may be controlled in thefollowing manner to move in the button adjustment interface: in eventthat the movement operation is a drag operation, control the targetvirtual button to move in the button adjustment interface following thedrag operation.

In an actual implementation, the movement operation may be a dragoperation. A user performs a drag operation for the target virtualbutton. During the execution of the drag operation, the position of thetarget virtual button is adjusted synchronously according to a positionindicated by the drag operation, for the position of the target virtualbutton to be consistent with the position indicated by the dragoperation.

In an actual application, the drag operation may be triggered by swipingon a screen. The position touched by a hand of a user on the screen canbe acquired, as the hand swipes on the screen, the target virtual buttonis controlled to following the hand, and the position of the targetvirtual button is a position touched by the hand.

In some embodiments, the movement operation includes a selectionoperation and a click operation. A terminal receives the selectionoperation for the target virtual button and controls the target virtualbutton to be in a pre-moving state before controlling the target virtualbutton to move in a button adjustment interface; the click operationtriggered in the button adjustment interface is received.Correspondingly, the target virtual button may be controlled in thefollowing manners to move in the button adjustment interface:determining a click position corresponding to the click operation, andcontrolling the target virtual button in the pre-moving state to move tothe click position.

In an actual implementation, the movement operation includes a selectionoperation and a click operation. First, the user needs to trigger theselection operation to select the target virtual button from the buttonadjustment interface. The selection operation may be a click operation,long-press operation, a double-click operation or the like. In eventthat the terminal receives the selection operation for the targetvirtual button, the target virtual button may be controlled to be in thepre-moving state by adjusting a display state of the target virtualbutton, for example, a display color of the target virtual button, forthe color of the target virtual button to be different from the color ofthe target virtual button in a non-pre-moving state before adjustment,thereby indicating that the target virtual button is in the pre-movingstate; or the target virtual button may be controlled to jitter toindicate that the target virtual button is in the pre-moving state;then, the user may trigger a click operation in the button adjustmentinterface. The terminal controls the target virtual button to move tothe click position corresponding to the click operation. The terminalmay present a process of moving the target virtual button to the clickposition corresponding to the click operation, or may directly present afinal state, that is, directly present the target virtual button at theclick position.

Step 503: Present prompt information in response to the target virtualbutton being moved to a boundary area in the button adjustmentinterface, the prompt information being used for prompting that thetarget virtual button is displayed abnormally in the virtual scene whenthe target virtual button is in a target presentation form of the atleast two presentation forms.

The boundary area corresponds to the target virtual button. In an actualimplementation, sizes of the target virtual button in at least twopresentation forms are acquired, the sizes being the lengths and widthsof the target virtual button, and the largest length and width aredetermined from the lengths and widths. According to the largest lengthand width, the button adjustment interface is divided into areas such asa boundary area and a non-boundary area, for the target virtual buttonof each presentation form in the non-boundary area to be presentedcompletely.

In an actual implementation, the target presentation form may be one ormore presentation forms. For example, the target virtual button hasthree presentation forms. In event that the target virtual button ismoved to the boundary area in the button adjustment interface, thetarget virtual button may be displayed abnormally in two presentationforms.

In some embodiments, in the process of controlling the movement of thetarget virtual button in the button adjustment interface, the boundaryarea in the button adjustment interface is presented in a targetpresentation mode, to distinguish the boundary area from a non-boundaryarea in the button adjustment interface.

In an actual implementation, after determining the target virtual buttonto be adjusted, the boundary area corresponding to the target virtualbutton in the button adjustment interface may be determined according tothe sizes of the target virtual button in the presentation forms, andthen the boundary area is presented in the target presentation mode. Forexample, the boundary area may be presented with target transparency,for the transparency of the boundary area to be less than that of othernon-boundary areas.

In this way, the user may know from the presented boundary area thatthere is a problem of abnormal display in event that the target virtualbutton is moved to the boundary area, thereby avoiding moving the targetvirtual button to the boundary area as much as possible.

In some embodiments, the terminal may present the button adjustmentinterface in the following manner: determining an initial presentationform of the target virtual button in the at least two presentation formsof the target virtual button; and presenting the button adjustmentinterface including the target virtual button in the initialpresentation form.

In an actual implementation, because the target virtual button has aplurality of presentation forms, any form may be selected from theplurality of forms as the initial presentation form of the targetvirtual button.

In some embodiments, to make the button adjustment interface as simpleas possible, the presentation form with the smallest size or thesimplest function may be selected as the initial presentation form fromthe plurality of presentation forms. For example, referring to FIG. 1Aand FIG. 1B, a virtual button 101 in FIG. 1A is only configured to loada firearm in event that a trigger operation is received. A “quickreload” virtual button 102 in FIG. 1B needs to carry the function of“loading” the firearm and needs to carry the function of changing thetype of bullets. That is, the function of the “quick reload” virtualbutton 102 in FIG. 1B is more complex and larger in size. Thepresentation form of the virtual button in FIG. 1A may be taken as theinitial presentation form.

In some embodiments, the terminal may present prompt information in thefollowing manner: switching the target virtual button from the initialpresentation form to the target presentation form; and using the targetvirtual button in the target presentation form as the promptinformation.

In an actual implementation, in response to the target virtual buttonbeing moved to the boundary area, the terminal acquires display data ofthe target virtual button in the target presentation form. The displaydata of the target virtual button in the target presentation form isparsed and rendered to present the target virtual button in the targetpresentation form, and the target virtual button in the initialpresentation form is canceled while the target virtual button in thetarget presentation form is presented.

The terminal switches the target virtual button from the initialpresentation form to the target presentation form, to prompt a userthat, there is a problem of abnormal display in event that the targetvirtual button is in the target presentation form. In addition, thetarget virtual button is presented in the target presentation form, sothat the user can clearly know which part of the target virtual buttonis displayed abnormally.

For example, FIG. 6 is a schematic diagram of a presentation interfaceof prompt information according to an embodiment of this application.Referring to FIG. 6, in event that the target virtual button is movedfrom the non-boundary area (a normal area) to the boundary area, thetarget virtual button is switched from an initial presentation form 601to a target presentation form 602. As shown in the figure, in event thatthe target virtual button is moved to the boundary area, the targetvirtual button in the target presentation form only presents a part ofthe content, a part of the content is not presented, and the part of thecontent that is not presented is a part that is not displayedabnormally.

In some embodiments, the terminal may present prompt information in thefollowing manner: acquiring a presentation position of the targetvirtual button in the initial presentation form in the boundary area;presenting the target virtual button in the target presentation form atthe presentation position, for the target virtual button in the initialpresentation form and the target virtual button in the targetpresentation form to be presented in an overlapping manner; and usingthe target virtual button in the target presentation form as the promptinformation.

In an actual implementation, in event that the target virtual button ismoved to the boundary area, the terminal acquires display data of thetarget virtual button in the target presentation form, and acquires thepresentation position of the target virtual button in the initialpresentation form in the boundary area. Then the display data of thetarget virtual button in the target presentation form is parsed andrendered in the presentation position, to present the target virtualbutton in the target presentation form at the presentation position, forthe target virtual button in the initial presentation form and thetarget virtual button in the target presentation form to be presented inan overlapping manner. The target virtual button in the initialpresentation form may be located above the target virtual button in thetarget presentation form or below the target virtual button in thetarget presentation form.

In an actual application, different transparency may be used forpresenting the target virtual button in the initial presentation formand the target virtual button in the target presentation form. Forexample, the transparency of the target virtual button in the initialpresentation form may be 1, and the transparency of the target virtualbutton in the target presentation form is 0.5. That is, the targetvirtual button in the initial presentation form is completely opaque,and the target virtual button in the target presentation form issemi-transparent, to distinguish between target virtual buttons indifferent presentation forms.

For example, FIG. 7 is a schematic diagram of a presentation interfaceof prompt information according to an embodiment of this application.Referring to FIG. 7, in event that the target virtual button is in anon-boundary area (a normal area), only a target virtual button 701 inthe initial presentation form is presented. In event that the targetvirtual button is moved from the non-boundary area (the normal area) tothe boundary area, the target virtual button in the initial presentationform and a target virtual button 702 in the target presentation form aresimultaneously presented. The transparency of the target virtual buttonin the target presentation form is less than that of the target virtualbutton in the initial presentation form, and is located at the targetvirtual button in the initial presentation form.

In some embodiments, the terminal may also receive a movement operationfor the target virtual button in the initial presentation form; andcontrol, in response to the movement operation, the target virtualbutton in the initial presentation form to move in the button adjustmentinterface, and control the target virtual button in the targetpresentation form to move synchronously along with the movement of thetarget virtual button in the initial presentation form.

In event that the target virtual button is presented in a plurality ofpresentation forms at the same time, a user triggers a movementoperation for the target virtual button in one of the two presentationforms, and the terminal is to simultaneously control the movement of thetarget virtual buttons in the plurality of presentation forms.

In an actual implementation, in event that the user triggers themovement operation of the target virtual button in the initialpresentation form, the position indicated by the movement operation isacquired. According to the position indicated by the movement operation,the target virtual button in the initial presentation form and thetarget virtual button in the target presentation form are controlled tomove synchronously in the button adjustment interface.

In some embodiments, the terminal may present the prompt information inthe following manner: presenting a prompt interface in the form of afloating window, for the floating window to float above the buttonadjustment interface, and presenting the prompt information in thefloating window.

In an actual implementation, in event that the target virtual button ismoved to the boundary area in the button adjustment interface, a promptinterface is presented in the form of a floating window, and the promptinformation is presented in the floating window. The prompt informationmay be text information or image information.

For example, FIG. 8 is a schematic diagram of a presentation interfaceof prompt information according to an embodiment of this application.Referring to FIG. 8, in event that the target virtual button 801 ismoved to the boundary area in the button adjustment interface, a promptinterface 802 is presented, and text prompt information “The targetvirtual button is displayed abnormally in the target presentation form”is presented in the prompt interface, to prompt the user that the targetvirtual button is displayed abnormally in the virtual scene in eventthat the target virtual button is in the target presentation form.

In some embodiments, a combination of a plurality of prompt informationmay be used for prompting a user. For example, in event that the targetvirtual button is moved to the boundary area in the button adjustmentinterface, the target virtual button in the initial presentation formand the target virtual button in the target presentation form aresimultaneously presented, and text prompt information is presented.

In some embodiments, the terminal may acquire a target position of thetarget virtual button in event that the target virtual button stopsmoving in the button adjustment interface. Correspondingly, after thepresenting prompt information, the terminal may use, in response to aposition determination instruction for the target position, the targetposition as the presentation position of the target virtual button inthe virtual scene in event that the target virtual button is in anon-target presentation form; determine, based on the target position,at least one candidate position that is in a non-boundary area andmatches the target presentation form; and select a candidate positionfrom the at least one candidate position as the presentation position ofthe target virtual button in the virtual scene in event that the targetvirtual button is in the target presentation form.

In an actual implementation, the position determination instruction maybe triggered by a release operation, that is, in event that the movementoperation is a drag operation, a user drags the target virtual button tothe target position and then performs the release operation, to triggerthe position determination instruction. Alternatively, the positiondetermination instruction may be triggered by a save operation. That is,in event that the user moves the target virtual button to the targetposition, a save operation may be triggered to save the positions ofvirtual buttons after the movement. The position determinationinstruction may be triggered in event that the user triggers the saveoperation.

Because there is a problem of abnormal display in event that the targetvirtual button in the target presentation form is at the targetposition, while the target virtual button in a non-target presentationform can be displayed normally at the target position. Based on this,the target position is used as the presentation position of the targetvirtual button in the virtual scene in event that the target virtualbutton is in the non-target presentation form, and then a position isreselected from the non-boundary area as the presentation position ofthe target virtual button in the virtual scene in event that the targetvirtual button is in the target presentation form.

In an actual implementation, at least one position having a distancewithin a range to the target position may be selected from thenon-boundary area, or may be randomly selected from the non-boundaryarea. The selection method of the candidate position is not limitedthereto.

In some embodiments, the candidate position matching the targetpresentation form may be selected from the non-boundary area, then thecandidate position is the presentation position of the target virtualbutton in the virtual scene in event that the target virtual button isin the target presentation form.

In some embodiments, at least two candidate positions matching thetarget presentation form may be selected from the non-boundary area.Then, the terminal may randomly select one of the at least two candidatepositions matching the target presentation form as the presentationposition of the target virtual button in the virtual scene in event thatthe target virtual button is in the target presentation form.Alternatively, at least two candidate positions may be marked in thebutton adjustment interface, and a user triggers a selection operationto select one of the at least two candidate positions as thepresentation position of the target virtual button in the virtual scenein event that the target virtual button is in the target presentationform.

In some embodiments, the terminal may acquire a target position of thetarget virtual button in event that the target virtual button stopsmoving in the button adjustment interface. Correspondingly, after thepresenting prompt information, the method further includes: using, inresponse to a position determination instruction for the targetposition, the target position as the presentation position of the targetvirtual button in the virtual scene in event that the target virtualbutton is in a non-target presentation form; presenting the targetvirtual button in the target presentation form in a non-boundary area inthe button adjustment interface; and determining, based on the targetvirtual button in the target presentation form and in response to aposition selection operation, a position indicated by the positionselection operation as the presentation position of the target virtualbutton in the target presentation form in the virtual scene.

The position selection operation is triggered based on the targetvirtual button in the target presentation form. In an actualimplementation, the terminal may use the target position as thepresentation position of the target virtual button in the virtual scenein event that the target virtual button is in the non-targetpresentation form, and then present a target virtual button in thetarget presentation form in the non-boundary area. The position of thetarget virtual button is the presentation position of the target virtualbutton in the target presentation form in the virtual scene.

In some embodiments, if the position of the target virtual button is theposition that a user wants to select, the position selection operationmay be directly triggered, and the position of the target virtual buttonis used as the presentation position of the target virtual button in thetarget presentation form in the virtual scene. If the position of thetarget virtual button is not the position that the user wants to select,the user may trigger a movement operation of the target virtual buttonin the target presentation form, to adjust the position of the targetvirtual button in the target presentation form to a position a userwants to select, then the position selection operation is triggered, andthen an adjusted position of the target virtual button is used as thepresentation position of the target virtual button in the targetpresentation form in the virtual scene.

In some embodiments, in event that the target virtual button is moved tothe boundary area in the button adjustment interface, the target virtualbutton in the target presentation form is presented in the non-boundaryarea. That is, two target virtual buttons are presented at the sametime. During the movement of the virtual button in the boundary area,the target virtual button in the target presentation form also moves.However, the target virtual button in the target presentation form canonly move in the non-boundary area. In event that the positiondetermination instruction is received, the position of the targetvirtual button in the target presentation form is used as thepresentation position of the target virtual button in the targetpresentation form in the virtual scene.

FIG. 9 is a schematic diagram of a presentation of a target virtualbutton according to an embodiment of this application. Referring to FIG.9, as shown by 901, the target virtual button in the target presentationform is presented right below the target virtual button in the initialpresentation form. The target virtual button in the target presentationform is located in the non-boundary area. In event that the targetvirtual button in the initial presentation form is moved to the right,the target virtual button in the target presentation form also moves tothe right.

In some embodiments, in event that the target virtual button is moved toa non-boundary area in the button adjustment interface, the terminal mayacquire a target position of the target virtual button in event that thetarget virtual button stops moving in the button adjustment interface;and use the target position as the presentation position of the targetvirtual button in the virtual scene in event that the target virtualbutton is in any one of the at least two presentation forms.

In an actual implementation, in event that the target virtual button ismoved to a non-boundary area in the button adjustment interface, thetarget virtual button may be displayed normally in any presentationform. Based on this, the target position is directly used as thepresentation position of the target virtual button in the virtual scenein event that the target virtual button is in the at least twopresentation forms.

The embodiments of this application are applied, so that positions of atarget virtual button in a plurality of presentation forms can beadjusted at the same time, thereby reducing data processing and savingstorage space compared with the setting of a plurality of sets of buttonpositions. In addition, prompt information is presented in event thatthe target virtual button is moved to a boundary area in the buttonadjustment interface to prompt a user that the target virtual button isdisplayed abnormally, thereby avoiding the problem of abnormal displayof the target virtual button.

The following continues to describe the method for adjusting theposition of a virtual button according to the embodiments of thisapplication, which is implemented by a terminal and a server incooperation. FIG. 10 is a schematic flowchart of a method for adjustingthe position of a virtual button according to an embodiment of thisapplication. Referring to FIG. 10, the method for adjusting the positionof a virtual button according to the embodiments of this applicationincludes the following steps:

Step 1001: A terminal presents a position adjustment function item of avirtual button.

Step 1002: Transmit, in response to a click operation on the positionadjustment function item, an acquisition request for display data of aposition adjustment interface to the server.

Step 1003: The server transmits the display data of the positionadjustment interface to the terminal.

The server determines the display data of the position adjustmentinterface based on the acquisition request, and returns the determineddisplay data to the terminal.

Step 1004: The terminal renders the received display data of theposition adjustment interface, to present the position adjustmentinterface, and presents the target virtual button in a firstpresentation form in the position adjustment interface.

Step 1005: Control, in response to a drag operation for the targetvirtual button, the target virtual button to follow the drag operationand move in the button adjustment interface.

Step 1006: Present the target virtual button in a second presentationform in event that the target virtual button is moved to a boundary areain the button adjustment interface.

Step 1007: Acquire, in response to a release operation for the targetvirtual button, a target position corresponding to the releaseoperation, and transmit the target position to the server.

Step 1008: The server uses the target position as a presentationposition of the target virtual button in a non-target presentation formin a virtual scene in event that the target position is located in theboundary area, and determines a position closest to the target positionfrom the non-boundary area as the presentation position of the targetvirtual button in the virtual scene in event that the target virtualbutton is in the target presentation form.

Step 1009: Store, by the server, the position information of the targetvirtual button.

The embodiments of this application are applied, so that positions of atarget virtual button in a plurality of presentation forms can beadjusted at the same time, thereby reducing data processing and savingstorage space compared with the setting of a plurality of sets of buttonpositions. In addition, in event that the target position is located inthe boundary area, a position closest to the target position isdetermined from the non-boundary area as the presentation position ofthe target virtual button in the virtual scene in event that the targetvirtual button is in the target presentation form, thereby avoiding theproblem of abnormal display of the target virtual button.

In the following, an exemplary application of this embodiment of thisapplication in an actual application scenario is described.

An example in which there are two modes that respectively correspond toa target virtual button in different presentation forms is used todescribe the method for adjusting the position of a virtual buttonaccording to the embodiments of this application. The first modecorresponds to the target virtual button in the first presentation form,and the second mode corresponds to the target virtual button in thesecond presentation form, the size of the target virtual button in thesecond presentation form being greater than that of the target virtualbutton in the first presentation form, resulting in that the targetvirtual button in the first presentation form can be displayed normallywhereas the target virtual button in the second presentation form isdisplay abnormally in some areas.

In an actual implementation, first the button adjustment interface isdivided into a normal area and a boundary area. The normal area is anarea in which the target virtual button in the second presentation formcan be completely presented without a problem of abnormal display. Theboundary area is an area in which the target virtual button in thesecond presentation form is displayed abnormally.

FIG. 11 is a schematic diagram of an interface for area divisionaccording to an embodiment of this application. Referring to FIG. 11,the button adjustment interface is divided into a normal area 1101 and aboundary area 1102. In the normal area 1101, both the target virtualbutton in the first presentation form and the target virtual button inthe second presentation form can be displayed normally. However, in theboundary area 1102, the target virtual button in the second presentationform cannot be displayed normally.

FIG. 12A and FIG. 12B are schematic diagrams of a presentation of atarget virtual button according to an embodiment of this application.Referring to FIG. 12A, in the normal area, the target virtual button1201 in the second presentation form can be displayed normally.Referring to FIG. 12B, in the boundary area, a part of the content ofthe target virtual button 1201 in the second presentation form isoutside a presentation area. That is, this part of the content cannot bedisplayed normally.

The manner of area division corresponds to the target virtual button.For example, the area division herein is determined by the size of thetarget virtual button in the second presentation form.

Then, a user may trigger a movement operation for the target virtualbutton through the button adjustment interface. The movement operationherein may be a drag operation, and the target virtual button movessynchronously with the drag operation, to adjust the position of thetarget virtual button.

During the movement, if the target virtual button is in the normal area,only the target virtual button in the first presentation form isdisplayed. If the target virtual button is in the boundary area, thetarget virtual button in the first presentation form and the targetvirtual button in the second presentation form are presented in anoverlapping manner. For example, the target virtual button in the secondpresentation form is displayed in the form of a shadow below the targetvirtual button in the first presentation form. Text prompt informationmay also be triggered at the same time to inform a user that the newlypresented virtual button is the target virtual button in the secondpresentation form. In this case, if the user continues to trigger themovement operation for the target virtual button, the target virtualbutton in the first presentation form and the target virtual button inthe second presentation form move synchronously.

In event that a user triggers a position determination instruction, thatis, in event that the user releases a hand, a position where the userreleases the hand is acquired. In event that the position where the userreleases the hand is in the normal area, the positions of the targetvirtual button in the first mode and the second mode are set to theposition where the user releases the hand. In event that the positionwhere the user releases the hand is in the boundary area, the positionof the target virtual button in the first mode is set to the positionwhere the user releases the hand, and the position of the target virtualbutton in the second mode is set to a position that is in the normalarea and matches the position where the user releases the hand, forexample, a position that is in the normal area and is closest to theposition where the user releases the hand.

The following describes an implementation process of the embodiments ofthis application on a functional side. FIG. 13 is a schematic flowchartof a method for adjusting the position of a virtual button according toan embodiment of this application. Referring to FIG. 13, the method foradjusting the position of a virtual button according to the embodimentsof this application includes the following steps:

Step 1301: Divide a button adjustment interface into a normal area and aboundary area.

The manner of area division is associated with a presentation form andsize of a target virtual button.

Step 1302: Receive a drag operation for a target virtual button.

Step 1303: Determine whether the target virtual button is dragged to theboundary area, and if yes, perform step 1304, or otherwise, perform step1305.

Step 1304: Determine whether presentation forms of the target virtualbutton in two modes are the same, and if yes, perform step 1305, orotherwise, perform step 1306.

Step 1305: Display Only the target virtual button in a firstpresentation form.

Step 1306: Display the target virtual button in the first presentationform and the target virtual button in a second presentation form, andpresent prompt information.

The target virtual button in the second presentation form has atransparency less than that of the target virtual button in the firstpresentation form.

Step 1307: Receive a hand-releasing operation for the target virtualbutton.

Step 1308: Determine whether a position where a hand is released is inthe boundary area, and if yes, perform step 1309, or otherwise, performstep 1310.

Step 1309: Determine whether the presentation forms of the targetvirtual button in the two modes are the same, and if yes, perform step1310, or otherwise, perform step 1311.

Step 1310: Set positions of the target virtual button in the first modeand the second mode to the position where the hand is released.

Step 1311: Set the target virtual button in the first mode to theposition where the hand is released, and set the target virtual buttonin the second mode in the normal area.

The following describes an implementation process of the embodiments ofthis application on a client side. FIG. 14 is a schematic flowchart of amethod for adjusting the position of a virtual button according to anembodiment of this application. Referring to FIG. 14, the method foradjusting the position of a virtual button according to the embodimentsof this application includes the following steps:

Step 1401: A client pulls related data.

The related data includes data such as presentation forms, sizes, andpresentation positions of virtual buttons.

Step 1402: Determine whether to carry custom button position settings oftwo modes, and if yes, perform step 1403, or otherwise, perform step1404.

Step 1403: Determine whether there are virtual buttons with the samefunction and different shapes in the two modes, and if yes, perform step1405, or otherwise, perform step 1404.

Step 1404: Customize the position of a virtual button according to anoperation of a user.

Step 1405: Set a boundary area, and display a virtual button in a secondmode in event that the virtual button is in the boundary area.

Step 1406: Customize positions of the virtual button in the two modesaccording to an operation of a user.

Step 1407: Write the customized position of the virtual button intocustom configuration data.

In this manner, after entering the game, the custom configuration datamay be loaded according to a selected mode, to present the virtualbutton according to the custom configuration data.

Embodiments of this application have the following beneficial effects:

In the same operation button adjustment interface, a user may adjust thesimilar or same functional button positions in a plurality of modes atthe same time, which can improve the efficiency of human-computerinteraction, reduce memory consumption during data processing, and savedata storage space.

The following continues to describe an exemplary structure when theapparatus 555 for adjusting the position of a virtual button accordingto the embodiments of this application is implemented as a softwaremodule. In some embodiments, as shown in FIG. 4, the software modulestored in the apparatus 555 for adjusting the position of a virtualbutton in a memory 550 may include:

a presentation module 5551, configured to present a button adjustmentinterface of a virtual scene including a target virtual button;

a movement module 5552, configured to control, in response to a movementoperation for the target virtual button, the target virtual button tomove in the button adjustment interface, to adjust a presentationposition of the target virtual button in the virtual scene,

there being at least two presentation forms of the target virtual buttonin the virtual scene; and

a prompt module 5553, configured to present prompt information in eventthat the target virtual button is moved to a boundary area in the buttonadjustment interface, the prompt information being used for promptingthat the target virtual button is displayed abnormally in the virtualscene in event that the target virtual button is in a targetpresentation form of the at least two presentation forms.

In some embodiments, the presentation module 5551 is further configuredto: determine an initial presentation form of the target virtual buttonin the at least two presentation forms of the target virtual button; and

present the button adjustment interface including the target virtualbutton in the initial presentation form.

In some embodiments, the prompt module 5553 is further configured to:switch the target virtual button from the initial presentation form tothe target presentation form; and

use the target virtual button in the target presentation form as theprompt information.

In some embodiments, the prompt module 5553 is further configured to:acquire a presentation position of the target virtual button in theinitial presentation form in the boundary area;

present the target virtual button in the target presentation form at thepresentation position, for the target virtual button in the initialpresentation form and the target virtual button in the targetpresentation form to be presented in an overlapping manner; and

use the target virtual button in the target presentation form as theprompt information.

In some embodiments, the presentation module 5551 is further configuredto: receive a movement operation for the target virtual button in theinitial presentation form;

control, in response to the movement operation, the target virtualbutton in the initial presentation form to move in the button adjustmentinterface, and

control the target virtual button in the target presentation form tomove synchronously along with the movement of the target virtual buttonin the initial presentation form.

In some embodiments, the prompt module 5553 is further configured to:present a prompt interface in the form of a floating window, for thefloating window to float above the button adjustment interface, and

display the prompt information in the floating window.

In some embodiments, the movement module 5552 is further configured tocontrol, in evet that the movement operation is a drag operation, thetarget virtual button to move in the button adjustment interfacefollowing the drag operation.

In some embodiments, the movement module 5552 is further configured to:receive the selection operation for the target virtual button, andcontrol the target virtual button to be in a pre-moving state;

receive the click operation triggered in the button adjustmentinterface; and

determine a click position corresponding to the click operation, and

control the target virtual button in the pre-moving state to move to theclick position.

In some embodiments, the presentation module 5551 is further configuredto present, in a process of controlling the target virtual button tomove in the button adjustment interface, the boundary area in the buttonadjustment interface in a target presentation mode, to

distinguish the boundary area from a non-boundary area in the buttonadjustment interface.

In some embodiments, the movement module 5552 is further configured to:acquire a target position of the target virtual button in event that thetarget virtual button stops moving in the button adjustment interface;

use, in response to a position determination instruction for the targetposition, the target position as the presentation position of the targetvirtual button in the virtual scene in event that the target virtualbutton is in a non-target presentation form;

determine, based on the target position, at least one candidate positionthat is in a non-boundary area and matches the target presentation form;and

select a candidate position from the at least one candidate position asthe presentation position of the target virtual button in the virtualscene in event that the target virtual button is in the targetpresentation form.

In some embodiments, the movement module 5552 is further configured to:acquire a target position of the target virtual button in event that thetarget virtual button stops moving in the button adjustment interface;

use, in response to a position determination instruction for the targetposition, the target position as the presentation position of the targetvirtual button in the virtual scene in event that the target virtualbutton is in a non-target presentation form;

present the target virtual button in the target presentation form in anon-boundary area in the button adjustment interface; and

determine, based on the target virtual button in the target presentationform and in response to a position selection operation, a positionindicated by the position selection operation as the presentationposition of the target virtual button in the target presentation form inthe virtual scene.

In some embodiments, the movement module 5552 is further configured to:acquire, in event that the target virtual button is moved to anon-boundary area in the button adjustment interface, a target positionof the target virtual button in event that the target virtual buttonstops moving in the button adjustment interface; and

use the target position as the presentation position of the targetvirtual button in the virtual scene in event that the target virtualbutton is in the at least two presentation forms.

An embodiment of this application provides a computer program product ora computer program. The computer program product or the computer programincludes computer instructions, and the computer instructions are storedin a computer-readable storage medium. A processor of a computer devicereads computer instructions from a computer-readable storage medium, andexecutes the computer instructions, to cause the computer device toperform the method for adjusting the position of a virtual button in theforegoing embodiments of this application.

An embodiment of this application provides a computer-readable storagemedium, storing executable instructions, the executable instructions,when executed by a processor, causing the processor to perform themethod provided in the embodiments of this application, for example, themethod shown in FIG. 5.

In some embodiments, the computer-readable storage medium may be aferroelectric random access memory (FRAM), a ROM, a programmableread-only memory (PROM), an erasable programmable read-only memory(EPROM), an electrically erasable programmable read-only memory(EEPROM), a flash memory, a magnetic surface memory, an optical disk, aCD-ROM or another memory; or may be a plurality of devices including oneor any combination of the foregoing memories.

In some embodiments, the executable instructions can be written in theform of a program, software, a software module, a script, or code andaccording to a programming language (including a compiler or interpreterlanguage or a declarative or procedural language) in any form, and maybe deployed in any form, including an independent program or a module, acomponent, a subroutine, or another unit suitable for use in a computingenvironment.

In an example, the executable instructions may, but do not necessarily,correspond to a file in a file system, and may be stored in a part of afile that saves another program or other data, for example, be stored inone or more scripts in a Hypertext Markup Language (HTML) file, storedin a file that is specially used for a program in discussion, or storedin the plurality of collaborative files (for example, be stored in filesof one or modules, subprograms, or code parts).

In an example, the executable instructions may be deployed to beexecuted on a computing device, or deployed to be executed on aplurality of computing devices at the same location, or deployed to beexecuted on a plurality of computing devices that are distributed in aplurality of locations and interconnected by using a communicationnetwork.

The foregoing descriptions are merely embodiments of this applicationand are not intended to limit the protection scope of this application.Any modification, equivalent replacement, or improvement made withoutdeparting from the spirit and range of this application shall fallwithin the protection scope of this application.

What is claimed is:
 1. A method for adjusting the position of a virtual button, performed by a computer device, and comprising: presenting a button adjustment interface of a virtual scene comprising a target virtual button; controlling, in response to a movement operation for the target virtual button, the target virtual button to move in the button adjustment interface, to adjust a presentation position of the target virtual button in the virtual scene, wherein at least two presentation forms of the target virtual button are in the virtual scene; and presenting prompt information in response the target virtual button being moved to a boundary area in the button adjustment interface, the prompt information being used for prompting that the target virtual button is displayed abnormally in the virtual scene when the target virtual button is in a target presentation form of the at least two presentation forms.
 2. The method according to claim 1, wherein the presenting a button adjustment interface of a virtual scene comprising a target virtual button comprises: determining an initial presentation form of the target virtual button in the at least two presentation forms of the target virtual button; and presenting the button adjustment interface comprising the target virtual button in the initial presentation form.
 3. The method according to claim 2, wherein the presenting prompt information comprises: switching the target virtual button from the initial presentation form to the target presentation form; and using the target virtual button in the target presentation form as the prompt information.
 4. The method according to claim 2, wherein the presenting prompt information comprises: acquiring a presentation position of the target virtual button in the initial presentation form in the boundary area; presenting the target virtual button in the target presentation form at the presentation position, for the target virtual button in the initial presentation form and the target virtual button in the target presentation form to be presented in an overlapping manner; and using the target virtual button in the target presentation form as the prompt information.
 5. The method according to claim 4, after the presenting prompt information, further comprising: receiving a movement operation for the target virtual button in the initial presentation form; controlling, in response to the movement operation, the target virtual button in the initial presentation form to move in the button adjustment interface, and controlling the target virtual button in the target presentation form to move synchronously along with the movement of the target virtual button in the initial presentation form.
 6. The method according to claim 1, wherein the presenting prompt information comprises: presenting a prompt interface in the form of a floating window, for the floating window to float above the button adjustment interface, and displaying the prompt information in the floating window.
 7. The method according to claim 1, wherein the movement operation comprises a drag operation, and the controlling the target virtual button to move in the button adjustment interface comprises: controlling the target virtual button to move in the button adjustment interface following the drag operation.
 8. The method according to claim 1, wherein the movement operation comprises a selection operation and a click operation, and before the controlling the target virtual button to move in the button adjustment interface, the method further comprises: receiving the selection operation for the target virtual button, and controlling the target virtual button to be in a pre-moving state; and receiving the click operation triggered in the button adjustment interface; and the controlling the target virtual button to move in the button adjustment interface comprises: determining a click position corresponding to the click operation, and controlling the target virtual button in the pre-moving state to move to the click position.
 9. The method according to claim 1, further comprising: presenting, in a process of controlling the target virtual button to move in the button adjustment interface, the boundary area in the button adjustment interface in a target presentation mode, to distinguish the boundary area from a non-boundary area in the button adjustment interface.
 10. The method according to claim 1, further comprising: acquiring a target position of the target virtual button when the target virtual button stops moving in the button adjustment interface; and after the presenting prompt information: using, in response to a position determination instruction for the target position, the target position as the presentation position of the target virtual button in the virtual scene in response to the target virtual button being in a non-target presentation form; determining, based on the target position, at least one candidate position that is in a non-boundary area and matches the target presentation form; and selecting a candidate position from the at least one candidate position as the presentation position of the target virtual button in the virtual scene in response to the target virtual button being in the target presentation form.
 11. The method according to claim 1, further comprising: acquiring a target position of the target virtual button when the target virtual button stops moving in the button adjustment interface; and after the presenting prompt information, the method further comprises: using, in response to a position determination instruction for the target position, the target position as the presentation position of the target virtual button in the virtual scene in response to the target virtual button being in a non-target presentation form; presenting the target virtual button in the target presentation form in a non-boundary area in the button adjustment interface; and determining, based on the target virtual button in the target presentation form and in response to a position selection operation, a position indicated by the position selection operation as the presentation position of the target virtual button in the target presentation form in the virtual scene.
 12. The method according to claim 1, further comprising: in response to the target virtual button being moved to a non-boundary area in the button adjustment interface, acquiring a target position of the target virtual button when the target virtual button stops moving in the button adjustment interface; and using the target position as the presentation position of the target virtual button in the virtual scene in response to the target virtual button being in any one of the at least two presentation forms.
 13. An apparatus comprising: a memory configured to store a plurality of executable instructions; and a processor configured execute the plurality of executable instructions to: present a button adjustment interface of a virtual scene comprising a target virtual button; control, in response to a movement operation for the target virtual button, the target virtual button to move in the button adjustment interface, to adjust a presentation position of the target virtual button in the virtual scene, wherein at least two presentation forms of the target virtual button are in the virtual scene; and present prompt information in response to the target virtual button being moved to a boundary area in the button adjustment interface, to prompt that the target virtual button is displayed abnormally in the virtual scene when the target virtual button is in a target presentation form of the at least two presentation forms.
 14. The apparatus according to claim 13, wherein, in order to present the button adjustment interface of the virtual scene comprising the target virtual button, the processor is configured to execute the plurality or executable instructions to: determine an initial presentation form of the target virtual button in the at least two presentation forms of the target virtual button; and present the button adjustment interface comprising the target virtual button in the initial presentation form.
 15. The apparatus according to claim 13, wherein, in order to present prompt information, the processor is configured to execute the plurality of executable instructions to: present a prompt interface in the form of a floating window, for the floating window to float above the button adjustment interface, and display the prompt information in the floating window.
 16. The apparatus according to claim 13, wherein the movement operation comprises a drag operation, and wherein, in order to control the target virtual button to move in the button adjustment interface, the processor is configured to execute the plurality of executable instructions to: control the target virtual button to move in the button adjustment interface following the drag operation.
 17. A non-transitory computer-readable storage medium, storing a plurality of executable instructions that, when executed by a processor, are configured to cause the processor to: present a button adjustment interface of a virtual scene comprising a target virtual button; control, in response to a movement operation for the target virtual button, the target virtual button to move in the button adjustment interface, to adjust a presentation position of the target virtual button in the virtual scene, wherein at least two presentation forms of the target virtual button are in the virtual scene; and present prompt information in response to the target virtual button being moved to a boundary area in the button adjustment interface, to prompt that the target virtual button is displayed abnormally in the virtual scene when the target virtual button is in a target presentation form of the at least two presentation forms.
 18. The non-transitory computer-readable storage medium according to claim 17, wherein the movement operation comprises a selection operation and a click operation, and before the control of the target virtual button to move in the button adjustment interface, the plurality of instructions, when executed by the processor, cause the processor to: receive the selection operation for the target virtual button, and control the target virtual button to be in a pre-moving state; and receive the click operation triggered in the button adjustment interface; and wherein in order to cause the processor to control the target virtual button to move in the button adjustment interface, the plurality of executable instructions, when executed by the processor, cause the processor to: determine a click position corresponding to the click operation, and control the target virtual button in the pre-moving state to move to the click position.
 19. The non-transitory computer-readable storage medium according to claim 17, wherein the plurality of executable instructions, when executed by the processor, further cause the processor to: present, in a process of controlling the target virtual button to move in the button adjustment interface, the boundary area in the button adjustment interface in a target presentation mode, to distinguish the boundary area from a non-boundary area in the button adjustment interface.
 20. The non-transitory computer-readable storage medium according to claim 17, wherein the plurality of executable instructions, when executed by the processor, further cause the processor to: acquire a target position of the target virtual button when the target virtual button stops moving in the button adjustment interface; and after the presentation of the prompt information: use, in response to a position determination instruction for the target position, the target position as the presentation position of the target virtual button in the virtual scene in response to the target virtual button being in a non-target presentation form; determine, based on the target position, at least one candidate position that is in a non-boundary area and matches the target presentation form; and select a candidate position from the at least one candidate position as the presentation position of the target virtual button in the virtual scene in response to the target virtual button being in the target presentation form. 